package com.aerotechnic.models;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name = "AVION")
public class Avion extends BaseEntity{

	
	private static final long serialVersionUID = 1L;
	
	@Column(name = "DESIGNATION")
	private String designation;
	@Column(name = "MATRICULE")
	private String matricule;
	@Column(name = "COMPAGNIE")
	private String compAe;
	@Column(name = "TYPE")
	private String type;
	@OneToMany(fetch = FetchType.EAGER, targetEntity = Visite.class)
	private Set<Visite> visite = new HashSet<Visite>(0);
	
	
	
	public String getDesignation() {
		return designation;
	}
	public void setDesignation(String designation) {
		this.designation = designation;
	}
	public String getMatricule() {
		return matricule;
	}
	public void setMatricule(String matricule) {
		this.matricule = matricule;
	}
	public String getCompAe() {
		return compAe;
	}
	public void setCompAe(String compAe) {
		this.compAe = compAe;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Set<Visite> getVisite() {
		return visite;
	}
	public void setVisite(Set<Visite> visite) {
		this.visite = visite;
	}
	
}
